package filedemo;

public class Main9 {

    public static void main(String[] args) {
        java.io.File file = new java.io.File("C:/java.txt");
        System.out.println(file.setReadOnly());
        System.out.println(file.canWrite());
        System.out.println(file.exists());
    }
}
